
package com.jf.cloud.live.service.impl;

import com.jf.cloud.common.database.dto.PageDTO;
import com.jf.cloud.common.database.util.PageUtil;
import com.jf.cloud.common.database.vo.PageVO;
import com.jf.cloud.live.mapper.LiveProdLogMapper;
import com.jf.cloud.live.model.LiveProdLog;
import com.jf.cloud.live.service.LiveProdLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 直播商品审核日志
 *
 * @author zz
 * @date 2022-08-17 17:09:06
 */
@Service
public class LiveProdLogServiceImpl implements LiveProdLogService {

    @Autowired
    private LiveProdLogMapper liveProdLogMapper;

    @Override
    public PageVO<LiveProdLog> page(PageDTO pageDTO) {
        return PageUtil.doPage(pageDTO, () -> liveProdLogMapper.list());
    }

    @Override
    public LiveProdLog getByLiveProdLogId(Long liveProdLogId) {
        return liveProdLogMapper.getByLiveProdLogId(liveProdLogId);
    }

    @Override
    public void save(LiveProdLog liveProdLog) {
        liveProdLogMapper.save(liveProdLog);
    }

    @Override
    public void update(LiveProdLog liveProdLog) {
        liveProdLogMapper.update(liveProdLog);
    }

    @Override
    public void deleteById(Long liveProdLogId) {
        liveProdLogMapper.deleteById(liveProdLogId);
    }
}
